bitkeeper revision 1.1108.35.6 (41091d99KjjPC1MDTpjZgbI8NuFnog)
authormjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>
Thu, 29 Jul 2004 15:54:01 +0000 (15:54 +0000)
committermjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>
Thu, 29 Jul 2004 15:54:01 +0000 (15:54 +0000)
Fix mac formatting.

tools/python/xen/xend/server/netif.py

index 3f51492ace6fbb4ef4891209dfefc7eef05412f5..41be86ac99da88055e37614fe84cb22a2c554e88 100755 (executable)
@@ -164,7 +164,7 @@ class NetDev(controller.Dev):
     def get_mac(self):
         """Get the MAC address as a string.
         """
-        return ':'.join(map(lambda x: "%x" % x, self.mac))
+        return ':'.join(map(lambda x: "%02x" % x, self.mac))
 
     def vifctl_params(self, vmname=None):
         dom = self.controller.dom